using System;
using System.Web.UI.WebControls;
using Framework.Module.MultiLanguage;

namespace Framework.Module.MultiLanguage.WebControls
{
	public class MLLinkButton : LinkButton, BaseControl
	{
		private string _languageKey = string.Empty;

		public string LanguageKey
		{
			get { return _languageKey; }
			set { _languageKey = value; }
		}

		protected override void OnPreRender(EventArgs e)
		{
			base.OnPreRender(e);
			this.Text = Initialize.GetString(LanguageKey);
		}
	}
}